//
//  File.h
//  http_server
//
//  Created by Zirpon Cheung on 15-3-25.
//  Copyright (c) 2015年 Zirpon Cheung. All rights reserved.
//

#ifndef __http_server__File__
#define __http_server__File__

#include <iostream>
#include <string>
#include <stdio.h>
#include <cstring>

using namespace std;

class File
{
public:
    File(string szPath);
    string getString(const string& szSearchKey, const string& def);// = std::string());
    void close();
    
private:
    string  PATH;
    FILE*   fp;
    char    buffer[1024];
    size_t  bytes_read;

};


#endif /* defined(__http_server__File__) */

